/*
 * @Description: 
 * @Version: 0.0.1
 * @Autor: zhj1214
 * @Date: 2021-11-16 09:50:18
 * @LastEditors: zhj1214
 * @LastEditTime: 2022-05-07 14:22:48
 */
// import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

// 判断是 qiankun 环境则增加路由前缀
// var prefix = ""

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/login.vue')
  }
]

export default routes
